case $(uname -s) in
Darwin)
  types="posix-like"
  ;;
Linux)
  types="posix-like ntp-like"
  ;;
esac

export SEXP_LEAP_SECONDS_LIST_FILE=/tmp/leap-seconds.list

for type in $types
do
  export SEXP_CLOCK_TYPE=$type
  echo "type = $type with no pending leap second"
  cat <<EOF >$SEXP_LEAP_SECONDS_LIST_FILE
3345062400	33	# 1 Jan 2006
3439756800	34	# 1 Jan 2009
EOF
  chibi-scheme benchmark.scm
  echo "type = $type with pending leap second"
  cat <<EOF >$SEXP_LEAP_SECONDS_LIST_FILE
3345062400	33	# 1 Jan 2006
3439756800	34	# 1 Jan 2009
3550089600	35	# 1 Jul 2012
EOF
  chibi-scheme benchmark.scm
done 2>&1 | tee /tmp/benchmark.out
